<ion-view>
    <ion-nav-bar class="drive-title">
        <ion-nav-buttons>
            <button ui-sref="index" class="button button-clear button-light">
                <i class="icon ion-ios-arrow-left"></i>&nbsp;返回
            </button>
        </ion-nav-buttons>
        <ion-nav-title>退单列表（{{list.length}}单）</ion-nav-title>
    </ion-nav-bar>
    <ion-content>
        <div class="item-input-inset">
            <label class="item-input-wrapper">
                <i class="icon ion-ios-search placeholder-icon"></i>
                <input style="width: 100%;" type="search" placeholder="输入订单号" ng-model="searchForm.orderCode"
                       ng-keyup="keyupEvent()">
            </label>
            <button class="button button-clear" style="color: #fc8325;" ng-click="init()">
                搜索
            </button>
        </div>
        <ion-list ng-if="list.length > 0">
            <ion-item class="item" ng-repeat="item in list track by $index">
                <h2>订单号：{{item.orderCode}}<a href="javascript:;"
                                             style="text-decoration: none; float: right; color: #fc8325;"
                                             ng-click="orderEnqueue(item.orderCode)">重新入队</a></h2>
                <p>派单时间：{{item.outsetTime || '--'}}</p>
                <p>派单时间：{{item.createTime || '--'}}</p>
                <p>退单原因：{{item.reason || '--'}}</p>
                <p>退单类型：{{item.type || '--'}}&nbsp;&nbsp;&nbsp;&nbsp;TMS退单结果：{{item.result || '--'}}</p>
            </ion-item>
        </ion-list>
        <div class="padding text-center" ng-if="list.length <= 0">
            <p>暂无退单列表数据</p>
        </div>
    </ion-content>
</ion-view>